package com.dldata.devtools30.repository.zhibiao;



import com.dldata.devtools30.entity.DevtZbplanInfoEntity;
import com.dldata.devtools30.entity.DevtZbplanTypeEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by ai on 2017/1/11.
 */
@Repository
public interface DevtZbplanInfoEntityDao
        extends com.dldata.devtools30.repository.BaseRepository<DevtZbplanInfoEntity,String>,
        JpaSpecificationExecutor<DevtZbplanInfoEntity> {
    
    @Query("select t from DevtZbplanInfoEntity t where t.planname like  ?1 or plancode like ?1 order by xh ")
    public List<DevtZbplanInfoEntity> getAll(String serach);
    
}
